#ifndef __BACKGROUND_PLAYFIELD_H_130129__
#define __BACKGROUND_PLAYFIELD_H_130129__
#include <SDL/SDL_video.h>

typedef struct {
  SDL_Surface *playfield; //!< This is the surface
  float speed; //!< scrolling speed
  float pos; //!< current position
  short powner; //!< if owner==1 then free surface on free playfield
} Background_playfield;

Background_playfield *create_bg_playfield(SDL_Surface *surf, float speed);
void blit_bg_playfield(const Background_playfield *playfield, SDL_Surface *surf);
void update_bg_playfield(Background_playfield *playfield, float movementrate);
void free_bg_playfield(Background_playfield *playfield);

#endif
